package com.spring.demo1;

/**
 * @author:liuwei
 * @creatdate:2021-07-13-10:55
 */
public class Proxy implements Rent{
	private Host host;

	public Proxy() {
	}

	public Proxy(Host host) {
		this.host = host;
	}

	@Override
	public void rent() {
		seeHouse();
		heTong();
		fare();
		host.rent();
	}

	//看房
	public void seeHouse(){
		System.out.println("中介带你看房");
	}
	//签合同
	public void heTong(){
		System.out.println("中介签租赁合同");
	}
	//收中介费
	public void fare(){
		System.out.println("中介收中介费");
	}
}
